package com.aaa.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 支付订单详情表
 * </p>
 *
 * @author pzs
 * @since 2023-03-21
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("his_order_charge_item")
public class OrderChargeItem implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 详情ID和his_care_order_*表里面的ID一样
     */
      private String itemId;

    /**
     * 处方ID【备用】
     */
    private String coId;

    /**
     * 项目名称
     */
    private String itemName;

    /**
     * 项目价格
     */
    private BigDecimal itemPrice;

    /**
     * 项目数量
     */
    private Integer itemNum;

    /**
     * 小计
     */
    private BigDecimal itemAmount;

    /**
     * 订单IDhis_oder_charge主键
     */
    private String orderId;

    /**
     * 项目类型0药品  还是1检查项
     */
    private String itemType;

    /**
     * 状态，0未支付，1已支付，2，已退费  3，已完成 字典表 his_order_details_status
     */
    private String status;

    public OrderChargeItem(String orderId, String itemId, String coId, String itemName, BigDecimal itemPrice, Integer itemNum, BigDecimal itemAmount, String status, String itemType) {
        this.itemId = itemId;
        this.coId = coId;
        this.itemName = itemName;
        this.itemPrice = itemPrice;
        this.itemNum = itemNum;
        this.itemAmount = itemAmount;
        this.orderId = orderId;
        this.itemType = itemType;
        this.status = status;
    }
}
